<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>元素的放大与过渡</title>
    <style>
        div{
            width: 100px;
            height: 100px;
            background-color: red;
            margin: 100px auto 0;
            transition: 2s;
        }
        div:hover{
            background-color: #00ff00;
            /*transform: scale(0.1);*/
            /*缩放，放大*/
            transform:rotate(45deg);

        }
    </style>
</head>
<body>
    <div>

    </div>
</body>
</html>